package com.zusmart.test.service.impl;

import com.zusmart.core.bean.annotation.Autowired;
import com.zusmart.core.bean.annotation.Component;

@Component
public class ConstructorServiceB {

	public ConstructorServiceB() {
		System.out.println("ConstructorServiceB -> 无参构造函数实例化");
	}

	// 强制使用有参构造函数实例化,单不注入参数
	@Autowired
	public ConstructorServiceB(String name) {
		System.out.println("ConstructorServiceB -> 有参构造函数实例化");
	}

}